package com.ll.wechat.base.app;

import android.app.Application;
import android.content.Context;

import com.facebook.drawee.backends.pipeline.Fresco;

import org.jivesoftware.smack.roster.RosterEntry;

public class App extends Application {

	public static Context mContext;

	@Override
	public void onCreate() {
		super.onCreate();
		mContext = getApplicationContext();
		// 鍐呭瓨娉勯湶妫�娴�
	//LeakCanary.install(this);
		// fresco鍒濆鍖�
		//Fresco.initialize(mContext);
	}
	public static String getName (RosterEntry n){
		String src=n.getUser().toString();
		String name=src.substring(0,src.indexOf("@"));
		return  name;
	}

}
